package com.laboratory.manage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: qinaolong
 * @Date: 2023/05/08/9:36
 * @Description:
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName("fixed_assets")
public class AssetEntity {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    /**
     * 资产编号
     */
    private String assetSerial;

    /**
     * 资产名称
     */
    private String assetInfo;

    /**
     * 使用部门
     */
    private String assetDepartment;

    /**
     * 使用人
     */
    private String assetPeople;

    /**
     * 资产状态
     */
    private Integer assetStatus;

    /**
     * 资产位置
     */
    private String assetLocation;

    /**
     * 资产数量
     */
    private Integer assetNum;

    /**
     * 获得日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date acceptTime;
}
